#include <iostream>
#include <vector>

using namespace std;

vector<int>::iterator iter(vector<int>::iterator beg, vector<int>::iterator end, int val)
{
	while(beg!=end)
	{
		if(*beg==val)
			break;
		else
			++beg;
	}
	return beg;
}

int main()
{
	int arr[10] = {0,1,2,3,4,5,6,7,8,9};
	vector<int> ivec(arr,arr+10);
	cout<<"enter a val you want to find:"<<endl;
	int val;
	cin>>val;
	vector<int>::iterator it;
	it=iter(ivec.begin(),ivec.end(),val);
	if(it!=ivec.end())
		cout<<"yes"<<endl;
	else
		cout<<"no"<<endl;
	
	return 0;
}